﻿using Service;
using System;

namespace PubClient
{
    public class Program
    {
        static string clannelString = "Wuhu";
        static void Main(string[] args)
        {
            Console.WriteLine("您是发布者，请发送信息:");
            PubService pubService = new PubService(channelName: clannelString);
            while (true)
            {
                pubService.Publish(Console.ReadLine());
            }
        }
    }
}
